package entity;

import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;
import transfer.CommodityCategory;

/**
 *
 * @author Sergey
 */
public interface CategoryLocalHome extends EJBLocalHome {

    public CategoryLocal create(CommodityCategory category) throws CreateException;

    public CategoryLocal findByPrimaryKey(Integer id_category) throws FinderException;

    public CategoryLocal findByCategory(String name_category) throws FinderException;

    Collection findCategories(int count) throws FinderException;
}
